//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.tool.btn;

import java.awt.Color;
import java.awt.Font;
import java.awt.event.MouseEvent;
import java.util.List;

import org.come.Frame.ChatHistoryJframe;
import org.come.Jpanel.ChatHistoryJpanel;
import org.come.entity.Pal;
import org.come.until.MessagrFlagUntil;

public class ChatTypeBtn extends MoBanBtn {
    private ChatHistoryJpanel chatHistoryJpanel;
    private int caozuo;

    public ChatTypeBtn(String iconpath, int type, int caozuo, String text, Color[] colors, Font font, ChatHistoryJpanel chatHistoryJpanel) {
        super(iconpath, type, colors);
        this.caozuo = caozuo;
        this.chatHistoryJpanel = chatHistoryJpanel;
        this.setText(text);
        this.setFont(font);
        this.setVerticalTextPosition(0);
        this.setHorizontalTextPosition(0);
    }

    public void chooseyes() {
    }

    public void chooseno() {
    }

    public void nochoose(MouseEvent e) {
        ChatHistoryJframe.getChatHistoryJframe().getChatHistoryJpanel().updateType(this.caozuo);
        return ;
    }

    public void mouseEntered(MouseEvent e) {
        super.mouseEntered(e);
        MessagrFlagUntil.setMouse(MessagrFlagUntil.MOUSE12);
    }

    public void mouseExited(MouseEvent e) {
        super.mouseExited(e);
        MessagrFlagUntil.setMouse(MessagrFlagUntil.MOUSE1);
    }
}
